package com.zhongyu.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.zhongyu.pojo.Provider;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
@Data
public class OrderVo {
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    @TableField(exist = false)
    private Provider provider;

    /**
     * 生成日期
     */    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private java.time.LocalDateTime createTime;

    /**
     * 审核日期
     */	    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private java.time.LocalDateTime checkTime;

    /**
     * 采购日期
     */	    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private java.time.LocalDateTime purchaseTime;

    /**
     * 入库或出库日期
     */    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private java.time.LocalDateTime stockTime;

    /**
     * 1:采购 2：销售
     */
    private Integer type;

    /**
     * 下单员
     */
    private Integer creator;

    /**
     * 审核员
     */
    private Integer checker;

    /**
     * 采购员
     */
    private Integer purchaser;

    /**
     * 库管员
     */
    private Integer stockKeeper;

    /**
     * 供应商或客户ID
     */
    private Integer providerId;

    /**
     * 合计金额
     */
    private Double totalMoney;

    /**
     * 采购: 0:未审核 1:已审核, 2:已确认, 3:已入库；销售：0:未出库 1:已出库
     */
    private String state;

    /**
     * 运单号
     */
    private Integer wayBillCode;
}
